package com.ktjy.ch15.mapper;

import com.ktjy.ch15.entity.StorageRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface StorageRecordMapper {
    public StorageRecord getBySrCode(@Param("srCode") String srCode);

    public List<StorageRecord> getPage(@Param("storageRecord") StorageRecord storageRecord,
                                 @Param("pageBegin") Integer pageBegin,
                                 @Param("pageSize") Integer pageSize);

    public Integer count(@Param("storageRecord") StorageRecord storageRecord);

    public int insert(StorageRecord storageRecord);

    public StorageRecord getById(@Param("id") Long id);

    public int update(StorageRecord storageRecord);

    public int delete(@Param("id") Long id);

    public StorageRecord findBySrCode(@Param("srCode") String srCode);
}
